#include "stdafx.h"
#include "ScreenCapture.h"

class Main : public base::Frame
{
protected:
	ScreenCapture	scrCap;

	void OnCreate()
	{
		scrCap.Create();
	}
	void OnClose(base::Message* msg)
	{
		scrCap.WaitClose();
	}
public:
	Main()
	{
		Param->Title = L"Android Touch";
		EventCreate.Add(this,&Main::OnCreate);
		GetMsgHook(WM_CLOSE)->Add(this,&Main::OnClose);
	}
};

WINMAIN
{
	base::MsgLoop ml;
	Main main;
	main.Create();
	return ml.Start();
};